<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>CSS 转换 - 平面缩放</title>
  <style>
    body {
      padding: 0 40px;
    }

    .box {
      width: 200px;
      padding: 80px;
      background-color: pink;
    }

    .box img {
      width: 200px;

      /* 添加过渡效果，便于观察缩放效果 */
      transition: transform 1s;
      
      transform-origin: 100px 0px;
    }

    .box:hover img {
      transform: scale(1.5);
    }
  </style>
</head>
<body>
  <h3>2d转换之缩放</h3>
  <p>在平面内放大或缩小标签盒子。</p>
  <div class="box">
    <img src="./images/heart.png" alt="">
  </div>
</body>
</html>